package com.BraveY.Demo01;

class Test {

    public static void main(String[] args) {

        Student s = new Student();

        s.name = "zhangsan";

        s.age = 19;

        Student s2 = s;

        System.out.println(s2.name + "，" + s2.age);

        s.name = "lishi";

        s.age = 20;

        System.out.println(s2.name + "，" + s2.age);

    }

}
